<div class="layui-body">
    <!-- 主体区域开始 -->
    <!--当前位置开始-->
    <div class="layui-card layadmin-header">
        <span class="layui-breadcrumb" style="visibility: visible;">
            <a href="{:url('Index/index')}">系统</a>
            <a><cite>新闻管理</cite></a>
        </span>
    </div>
    <!--当前位置结束-->
    <div class="layui-row">
        <div id="head">
            <div class="layui-row">
                <div class="layui-col-md10" id="head-left">
                    <form action="{:url('Content/index')}" method="get" class="layui-form">
                        <div class="search">
                            <input type="text" name="title" required lay-verify="required" placeholder="请输入标题"
                                   autocomplete="off" class="layui-input" value="{$title}">
                            <button class="layui-btn" type="submit">提交</button>
                            <a href="{:url('Content/index')}" class="layui-btn layui-btn-normal">重置</a>
                        </div>
                    </form>
                </div>
                <div class="layui-col-md2" id="head-right">
                    <a href="{:url('Content/data_insert')}" class="layui-btn layui-btn-normal" title="添加">添加</a>
                </div>
            </div>
        </div>
        <div id="main">
            <table class="layui-table">
                <thead>
                <tr>
                    <td width="50">序号</td>
                    <td>标题</td>
                    <td width="150">栏目</td>
                    <td width="50">浏览量</td>
                    <td width="150">创建时间</td>
                    <td width="200">操作</td>
                </tr>
                </thead>
                <tbody>
                {volist name='data' id='v'}
                <tr>
                    <td>{$v.id}</td>
                    <td>{$v.title}</td>
                    <td>{$v.cat_title}</td>
                    <td>{$v.views}</td>
                    <td>{$v.create_time}</td>
                    <td>
                        <a href="{$v.link}" target="_blank"
                           class="layui-btn layui-btn-normal layui-btn-xs"><i class="layui-icon layui-icon-release"></i>预览</a>
                        <a href="{:url('Content/data_update',['id'=>$v['id']])}" class="layui-btn layui-btn-xs">
                            <i class="layui-icon layui-icon-edit"></i>修改</a>
                        <button data-db="content" data-id="{$v.id}"
                                class="layui-btn layui-btn-danger layui-btn-xs button-del">
                            <i class="layui-icon layui-icon-delete"></i>删除
                        </button>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div>
        <div id="page">{$page|raw}</div>
    </div>
    <!--主体区域结束-->
</div>